$('.form_date').datetimepicker({
	language : 'zh-CN',
	weekStart : 1,
	todayBtn : 1,
	autoclose : 1,
	todayHighlight : 1,
	startView : 2,
	minView : 2,
	forceParse : 0
});
myapp.controller('queryMoneyFlow', [ '$scope', '$http',
		function($scope, $http) {
			$scope.page = {pageNo:1};
			$scope.balance_status_list=[{balance_status:'',label:'全部'},{balance_status:'0',label:'未结算'},{balance_status:'1',label:'已结算'}];
			$scope.balance_status='';
 			$scope.research = function(){
				//强制页码变化
				$scope.page.pageNo=1;
 				$scope.search();
			};
			$scope.pageChanged =function(page){
				$scope.search();
			};
			$scope.search = function() {
				$http({
					method : 'POST',
					url : ctx + '/balance/list.htm',
					data : {
						true_name:$scope.true_name,
						mobile:$scope.mobile,
						emp_code:$scope.emp_code,
						user_id:$scope.user_id,
						id_card:$scope.id_card,
						start_time:$scope.start_time,
						end_time:$scope.end_time,
						target_date:$scope.target_date,
						balance_status:$scope.balance_status,
						pageNo:$scope.page.pageNo,
						pageSize:$scope.page.pageSize
					} }).success(function(data) {
					if (data.rescode == 200) {
						$scope.page = data.data;
					} else {
						$scope.msg = data.msg;
					}
				});
			};
		} ]);